import 'package:flutter/material.dart';
import 'package:flutter_basic/basic/basic_controller.dart';

class PropertyHomePageController extends BasicController{
  int column = 4;
  int row = 2;
  int pageSize = 0;
  int pageNumber = 0;
  int currentPage = 0;
  PageController pageController = PageController(
    initialPage: 0,
    keepPage: true,
  );

  List<String> items = <String>[
    '独家','一手新盘','钥匙','绿表价',
    '连车位', '大型车位','中型车位','小型车位',
    '居屋', '公屋','村屋','开放式',
    '一房', '二房', '三房','四房',
    '五房', '五房以上',
  ];

  @override
  void onInit() {
    super.onInit();
    pageSize = column * row;
    // pageNumber = (items.length % pageSize > 0 ? (items.length / pageSize) + 1 : items.length / pageSize) as int;
    pageNumber = 3;



  }

}